using System;
using UnityEngine;
using UnityEngine.UI;

namespace CGF
{
    //该脚本自动生成或覆盖，不可编辑
    public partial class PanelMyExpoDetail
    {   
		public CButton BtnClose;
		public Text TextScroe;
		public Text TextTime;
		public Text TextContent;
		public Text MsgCellMe;
		public Text MsgCellAI;
		public I18N i18n;

        public Reference reference { get; private set; }
        public Action onProsBindCompleted;
        
        public void BindProperties(Transform transform)
        {   
            reference = transform.GetComponent<Reference>();
            if(!reference)return;
            int nodeIndex = 0;
			BtnClose = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<CButton>();
			TextScroe = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<Text>();
			TextTime = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<Text>();
			TextContent = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<Text>();
			MsgCellMe = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<Text>();
			MsgCellAI = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<Text>();
			i18n = transform.GetComponent<I18N>();
            onProsBindCompleted?.Invoke();
        }
        
        public void SetProsBindCompletedAction(Action action)
        {
            onProsBindCompleted = action;
        }

		public string I18N_order_no { get { return i18n.GetTextByKey("order_no"); } }
		public string I18N_scroe { get { return i18n.GetTextByKey("scroe"); } }
		public string I18N_time { get { return i18n.GetTextByKey("time"); } }
		public string I18N_content { get { return i18n.GetTextByKey("content"); } }
		public string I18N_me { get { return i18n.GetTextByKey("me"); } }
    }
}
